package com.wenli.graduate2022.wenliGreenShop.service.servImpl;

import com.wenli.graduate2022.wenliGreenShop.entity.PropertyValue;
import com.wenli.graduate2022.wenliGreenShop.repository.mapper.PropertyValueMapper;
import com.wenli.graduate2022.wenliGreenShop.service.servDao.PropertyValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/11 11:39
 */
@Service
public class PropertyValueServImpl implements PropertyValueService {

    @Autowired
    PropertyValueMapper propertyValueMapper;


    @Override
    public List<PropertyValue> findByProductId(Integer id) {
        return propertyValueMapper.findByProductId(id);
    }

    @Override
    public int update(String propertyValue, Integer id) {
        return propertyValueMapper.update(propertyValue,id);
    }

    @Override
    public int insert(PropertyValue propertyValue) {
        return propertyValueMapper.insert(propertyValue);
    }
}
